package com.gridmobi.xrtb.domain.dsp;

import java.io.Serializable;
import java.util.Date;

public class DspCfgRules  implements Serializable {
    private Long id;

    private Date updatetime;

    private Date createtime;

    private Integer state;

    private Integer deleteflag;

    private String rulename;

    private Integer aid;

    private Integer cid;

    private Integer applyto;

    private Integer checkfrequency;

    private Integer timerange;

    private Integer ruleresult;

    private String cname;

    private String aname;
    /**
     * @see DspCfgRulesCondition
     */
    private String conditions;

    /**
     * @see DspCfgRulesMicroBidding
     */
    private String result;

    private String cids;


    private byte[] applyvalues;

    private String applyvaluesstr;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getDeleteflag() {
        return deleteflag;
    }

    public void setDeleteflag(Integer deleteflag) {
        this.deleteflag = deleteflag;
    }

    public String getRulename() {
        return rulename;
    }

    public void setRulename(String rulename) {
        this.rulename = rulename == null ? null : rulename.trim();
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getApplyto() {
        return applyto;
    }

    public void setApplyto(Integer applyto) {
        this.applyto = applyto;
    }

    public Integer getCheckfrequency() {
        return checkfrequency;
    }

    public void setCheckfrequency(Integer checkfrequency) {
        this.checkfrequency = checkfrequency;
    }

    public Integer getTimerange() {
        return timerange;
    }

    public void setTimerange(Integer timerange) {
        this.timerange = timerange;
    }

    public Integer getRuleresult() {
        return ruleresult;
    }

    public void setRuleresult(Integer ruleresult) {
        this.ruleresult = ruleresult;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname == null ? null : aname.trim();
    }

    public String getConditions() {
        return conditions;
    }

    public void setConditions(String conditions) {
        this.conditions = conditions == null ? null : conditions.trim();
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }

    public String getCids() {
        return cids;
    }

    public void setCids(String cids) {
        this.cids = cids == null ? null : cids.trim();
    }

    public byte[] getApplyvalues() {
        return applyvalues;
    }

    public void setApplyvalues(byte[] applyvalues) {
        this.applyvalues = applyvalues;
    }

    public String getApplyvaluesstr() {
        return applyvaluesstr;
    }

    public void setApplyvaluesstr(String applyvaluesstr) {
        this.applyvaluesstr = applyvaluesstr;
    }
}